package com.dc.business.datacollectbusiness.service;

import com.dc.business.datacollectbusiness.model.HJ212Model;
import com.dc.business.datacollectbusiness.model.device;
import com.github.pagehelper.PageInfo;

import java.io.IOException;
import java.util.List;

public interface HJ212ReceiverService {

    public void collectHJ212Msg() throws InterruptedException, IOException;

    // 拿取34个设备最新的数据信息
    public List<device> fetchAllDevicesLatestInfo();

    // 拿取制定MN设备最新的几条数据信息(不输入开始结束时间)
    public PageInfo<HJ212Model> findPageDeviceByMn(int pageNum, int pageSize, String mn);

    // 拿取制定MN设备最新的几条数据信息(输入开始结束时间)
    public PageInfo<HJ212Model> findPageDeviceByMnAndTime(int pageNum, int pageSize, String mn, String startTime, String endTime);


}
